use

inline fun <R, T : BaseHttpClient<*>> T.use(block: (T) -> R): R

Use a HTTP client, then close it in finally block. Like JVM's use.

Sources

js source
Link copied to clipboard